<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<img th:src="@{/img/dx.png}">

<img th:src="@{../img/diyi.jpg}">
</body>
</html>